import request from '@/utils/request'

// 查询事件源数据列表
export function listQuakeEventOrigin(query) {
  return request({
    url: '/device/quakeEventOrigin/list',
    method: 'get',
    params: query
  })
}

// 查询事件源数据详细
export function getQuakeEventOrigin(id) {
  return request({
    url: '/device/quakeEventOrigin/' + id,
    method: 'get'
  })
}

// 新增事件源数据
export function addQuakeEventOrigin(data) {
  return request({
    url: '/device/quakeEventOrigin',
    method: 'post',
    data: data
  })
}

// 修改事件源数据
export function updateQuakeEventOrigin(data) {
  return request({
    url: '/device/quakeEventOrigin',
    method: 'put',
    data: data
  })
}

// 删除事件源数据
export function delQuakeEventOrigin(id) {
  return request({
    url: '/device/quakeEventOrigin/' + id,
    method: 'delete'
  })
}
